<template>
  <div id="index">
    <!-- <dv-full-screen-container ref="bg_img" class="bg">
      <dv-loading v-if="loading">Loading...</dv-loading>
      <div v-else class="host-body">
        <div class="d-flex jc-center">
          <dv-decoration-10 style="width:33.3%;height:.0625rem;" />
          <div class="d-flex jc-center">
            <dv-decoration-8 :color="['#568aea', '#000000']" style="width:2.5rem;height:.625rem;" />
            <div class="title">
              <span class="title-text">大数据可视化平台</span>
              <dv-decoration-6
                class="title-bototm"
                :reverse="true"
                :color="['#50e3c2', '#67a1e5']"
                style="width:3.125rem;height:.1rem;"
              />
            </div>
            <dv-decoration-8
              :reverse="true"
              :color="['#568aea', '#000000']"
              style="width:2.5rem;height:.625rem;"
            />
          </div>
          <dv-decoration-10 style="width:33.3%;height:.0625rem; transform: rotateY(180deg);" />
    </div>-->

    <!--
        <div class="d-flex jc-between px-2">
          <div class="d-flex" style="width: 40%">
            <div class="react-right bg-color-blue ml-4" style="width: 6.25rem; text-align: left;">
              <span class="react-before"></span>
              <span class="text">系统管理页</span>
            </div>
            <div class="react-right bg-color-blue ml-3"  @click="echart_ivew()">
              <span class="text mutual_text colorBlue">进入可视化</span>
            </div>

          </div>
          <div style="width: 40%" class="d-flex">
            <div class="react-left bg-color-blue mr-3" @click="quit()">
              <span class="text mutual_text fw-b">退出</span>
            </div>
            <div class="react-left bg-color-blue mr-3" style="width: 6.25rem;  ">
              <span class="react-after"></span>
              <span class="text bg-color-blue">{{formattedDate}}</span>
            </div>
          </div>
    </div>-->
    <div class="header">
      <div class="header_title">后台管理系统</div>
      <!-- <div class="header_butt"> -->
        <!-- <div class="header_butt" @click="quit()">
          <span class="text mutual_text fw-b">退出</span>
        </div> -->
        <el-button plain  @click="quit()">退出</el-button>
      <!-- </div> -->
    </div>
    <div class="mannge_body_box">
      <el-tabs :tab-position="tabPosition" style=" height: 90vh">
        <el-tab-pane label="用户审核"><Auditing_view/></el-tab-pane>
        <el-tab-pane label="用户列表"><User_List/></el-tab-pane>
        <!-- <el-tab-pane label="角色管理">角色管理</el-tab-pane>
        <el-tab-pane label="定时任务补偿">定时任务补偿</el-tab-pane>-->
      </el-tabs>
    </div>
  </div>
  <!-- </dv-full-screen-container> -->
  <!-- </div> -->
</template>

  <script>
// import centerLeft1 from "./centerLeft1";
// import centerLeft2 from "./centerLeft2";
// import centerRight1 from "./centerRight1";
// import centerRight2 from "./centerRight2";
// import center from "./center";
// import bottomLeft from "./bottomLeft";
import Auditing_view from "@/components/ComeFrom/Auditing_view.vue";
import User_List from "@/components/ComeFrom/User_List.vue";
export default {
  data() {
    return {
      tabPosition: "left",
      loading: true,
      formattedDate: ""
    };
  },
  components: {
    Auditing_view,
    User_List,
    // centerRight1,
    // centerRight2,
    // center,
    // bottomLeft,
    // bottomRight
  },
  mounted() {
    this.cancelLoading();
    this.timeinit();
  },
  methods: {
    cancelLoading() {
      setTimeout(() => {
        this.loading = false;
        console.log(this.$refs.bg_img);
      }, 500);
    },
    quit() {
      this.$router.push("/login");
    },
    echart_ivew() {
      this.$router.push("/index");
    },
    timeinit() {
      const currentDate = new Date();
      const year = currentDate.getFullYear();
      const month = currentDate.getMonth() + 1;
      const day = currentDate.getDate();

      const weekday = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"];
      const formattedDate = `${year}年${month}月${day}日 ${
        weekday[currentDate.getDay()]
      } ${currentDate.getHours()}时${currentDate.getMinutes()}分`;
      this.formattedDate = formattedDate;
    }
  }
};
</script>

  <style lang="scss">
@import "../assets/scss/mannge.scss";
</style>